@import "./../theme";
@import "./../var";

.iss-form-renderer, .iss-form-designer {
  // 设计器组件样式重定义
  .el-divider {
    background-color: $bodyBgColor;
  }

  .el-checkbox, .el-radio {

    &.is-bordered {
      margin: 0 4px 4px 0 !important;
      min-width: 10rem;
      height: auto!important;
      min-height: 2rem;
      padding-bottom: 5px;
    }

    .el-checkbox__label, .el-radio__label {
      white-space: pre-line;
      display: inline-flex;
      word-wrap: break-word;
      line-height: 1.2;
    }
  }

  .el-radio {
    line-height: 2rem;

    &.is-bordered {
      line-height: 1;
    }
  }

  .el-radio-button, .el-checkbox-button {
    margin-bottom: 3px;

    & + .el-radio-button, & + .el-checkbox-button {
      box-shadow: -1px 0 0 $borderColorPrimary;
    }

    &.is-focus {
      .el-checkbox-button__inner {
        border-color: $borderColorPrimary !important;
      }
    }
  }

  .el-form-item--small {
    .el-rate {
      margin-top: 6px;
    }
  }

  .el-form-item--mini {
    .el-rate {
      margin-top: 4px;
    }
  }

  .el-form-item--medium {
    .el-rate {
      margin-top: 8px;
    }
  }

  .el-slider__button-wrapper {
    z-index: 101;
  }

  .el-slider {
    padding: 0 1rem;
  }

  .el-form--label-top {
    .el-form-item__label {
      padding: 0 !important;
    }
  }
}

.mobile {
  .el-checkbox, .el-radio {
    &.is-bordered {
      margin-right: 0 !important;
    }
  }
}

.el-select-dropdown {
  z-index: 10000 !important;
}

$emptyImageSize: 6rem;
.iss-iframe {
  border: none;
}

.iss-image-load-failed {
  background-color: $bgColorPrimaryActive;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: $radiusRegular;
  color: $colorTextInfo;
  flex-direction: column;
  font-size: $fontSizeRegular;
  padding: 0.5rem;
  box-sizing: border-box;
}

.iss-empty-image {
  width: $emptyImageSize;
  height: $emptyImageSize;
  background: transparent url('./../../images/common_empty.png') no-repeat;
  background-size: contain;
  background-position: center;
  margin-bottom: 1rem;
}

[type="button"] {
  -webkit-appearance: none !important;
}

.iss-number-unit {
  margin-left: 5px;
  font-size: $fontSizeRegular;
}
